﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Program_FlightChess
{
    #region 棋盘事件类
    class ChessBoardAction
    {
        /// <summary>
        /// 棋盘事件类
        /// </summary>
        public Action<Player> OnTrigger;

        public string actionName;

        public List<string> ActionString;
        public int count { get; }
        public int[] chessBoardIndex { get; }

        public ChessBoardAction(string chessString, int[] chessBoardIndex)
        {
            actionName = chessString;
            if (chessBoardIndex != null)
            {
                count = chessBoardIndex.Length;
                this.chessBoardIndex = chessBoardIndex;
                ActionString = new List<string>();
                for (int i = 0; i < count; i++)
                {
                    ActionString.Add(chessString);
                }
            }
        }
    }
    #endregion
}
